package com.bobi.tfca.ui.mainnavigation.home.activity

import android.annotation.SuppressLint
import android.os.Bundle
import androidx.lifecycle.ViewModel
import com.bobi.tfca.base.BaseFragment
import com.bobi.tfca.databinding.FragmentShowActConditionBinding
import com.bobi.tfca.databinding.FragmentShowActDetailsBinding

class ShowActDetailsFragment: BaseFragment<FragmentShowActDetailsBinding, ViewModel>(
    FragmentShowActDetailsBinding::inflate,
    null,
    true
) {
    @SuppressLint("ResourceType", "UseRequireInsteadOfGet")
    override fun initFragment(
        binding: FragmentShowActDetailsBinding,
        viewModel: ViewModel?,
        savedInstanceState: Bundle?
    ) {
        publicViewModel!!.activity.observe(viewLifecycleOwner) {
            binding.tvDetails.text = it.activityDetails
        }
    }
}